﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DTO;
using BUS;

namespace GaSaiGon.GUI
{
    public partial class frmChiTietGaTau : Form
    {
        public frmChiTietGaTau()
        {
            InitializeComponent();
        }

        private void btnThoat_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void frmChiTietGaTau_Load(object sender, EventArgs e)
        {
            string matau1 = Tag.ToString();
            GaTauBUS gtbus = new GaTauBUS();
            GaTauDTO gtdto = new GaTauDTO();
            gtdto.LayThongTinGaTau(matau1);
            matau.Text = gtbus.LayThongTinGaTau(gtdto).Rows[0]["MaTau"].ToString();
            sotoa.Text = gtbus.LayThongTinGaTau(gtdto).Rows[0]["SoToa"].ToString();
            ghecung.Text = gtbus.LayThongTinGaTau(gtdto).Rows[0]["Soluong"].ToString();
            ghedieuhoa.Text = gtbus.LayThongTinGaTau(gtdto).Rows[1]["Soluong"].ToString();
            giuongnam.Text = gtbus.LayThongTinGaTau(gtdto).Rows[2]["Soluong"].ToString();
        }

        private void matau_Click(object sender, EventArgs e)
        {

        }

        private void sotoa_Click(object sender, EventArgs e)
        {

        }

        private void ghecung_Click(object sender, EventArgs e)
        {

        }

        private void ghedieuhoa_Click(object sender, EventArgs e)
        {

        }

        private void giuongnam_Click(object sender, EventArgs e)
        {

        }
    }
}
